import request from '@/utils/request'

/**
 * 评价列表
 * @param {Object} params 
 */
export function queryCommentPage(params) {
  return request({
    url: '/system/comment/list',
    method: 'get',
    params: params
  })
}


/**
 * 修改文章评价
 * @param {String} id 
 */
export function commentEdit(data) {
  return request({
    url: '/system/comment',
    method: 'put',
    data: data
  })
}

/**
 * 删除评价
 * @param {String} ids 
 */
export function deleteComment(ids) {
  return request({
    url: '/system/comment/' + ids,
    method: 'delete',
  })
}
